home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Game / S / Slug A & B.cpt / Slug A / card_2893.txt < prev    next >
Text File  |  1989-04-19  |  15KB  |  592 lines

  1. -- card: 2893 from stack: in
  2. -- bmap block id: 4002
  3. -- flags: 0000
  4. -- background id: 2627
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global loaded1,loaded2
  9.   if loaded1=0 or loaded2=0 then
  10.     repeat with i=1 to 13
  11.       put empty into card field i
  12.     end repeat
  13.     put "2" into card field 3
  14.   end if
  15. end openCard
  16.  
  17.  
  18.  
  19. -- part 1 (button)
  20. -- low flags: 00
  21. -- high flags: 2000
  22. -- rect: left=18 top=26 right=46 bottom=42
  23. -- title width / last selected line: 0
  24. -- icon id / first selected line: 11045 / 11045
  25. -- text alignment: 1
  26. -- font id: 0
  27. -- text size: 12
  28. -- style flags: 0
  29. -- line height: 16
  30. -- part name: Go home
  31. ----- HyperTalk script -----
  32. on mouseUp
  33.   visual effect iris close
  34.   go home
  35. end mouseUp
  36.  
  37.  
  38.  
  39. -- part 2 (button)
  40. -- low flags: 00
  41. -- high flags: 2000
  42. -- rect: left=16 top=72 right=94 bottom=48
  43. -- title width / last selected line: 0
  44. -- icon id / first selected line: 3835 / 3835
  45. -- text alignment: 1
  46. -- font id: 0
  47. -- text size: 12
  48. -- style flags: 0
  49. -- line height: 16
  50. -- part name: prev
  51. ----- HyperTalk script -----
  52. on mouseUp
  53.  
  54.   global repeet
  55.   put card field "numRounds" into repeet
  56.   if repeet=0 then put 12 into repeet
  57.   play "Cheer"
  58.  
  59.   go to prev card
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 3 (button)
  65. -- low flags: 00
  66. -- high flags: 2000
  67. -- rect: left=16 top=51 right=72 bottom=48
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 29484 / 29484
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: next
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.  
  79.   global repeet
  80.   put card field "numRounds" into repeet
  81.   if repeet=0 then put 12 into repeet
  82.   play "Cheer"
  83.  
  84.   go to next card
  85. end mouseUp
  86.  
  87.  
  88.  
  89. -- part 5 (button)
  90. -- low flags: 00
  91. -- high flags: 0000
  92. -- rect: left=0 top=98 right=207 bottom=512
  93. -- title width / last selected line: 0
  94. -- icon id / first selected line: 0 / 0
  95. -- text alignment: 1
  96. -- font id: 0
  97. -- text size: 12
  98. -- style flags: 0
  99. -- line height: 16
  100. -- part name: ForbiddenButton
  101. ----- HyperTalk script -----
  102. on mouseUp
  103.   global tries
  104.   put tries+1 into tries
  105.   put 0 into n
  106.   put 10 into numtries
  107.   if tries>numtries then put 1 into tries
  108.   if tries=1
  109.   then put "You are not allowed to click this button.  Sorry!" into m
  110.   if tries=2
  111.   then put "You have not proven to me that you are mature enough to click this button." into m
  112.   if tries=3
  113.   then put "If you want to click this button, you have to insert a note from your mother into the internal disk drive." into m
  114.   if tries=4
  115.   then put "Click this button again if you want...but better make a backup of your hard disk first!" into m
  116.   if tries=5
  117.   then put "I'll give you one thing...you've got guts.  I hope you will use better sense if you see something like this somewhere else. What if this Stack really contained a XCMD to nuke your disk?" into m
  118.   if tries=6
  119.   then put "Just curious...Did you take any precaution before clicking this button for the fourth time?" into m
  120.   if tries=7
  121.   then put "The Slug would appreciate it if you would quit clicking him." into m
  122.   if tries=8
  123.   then put "I give up.  This is the messages will repeat after this." into m
  124.   if tries=9
  125.   then put "You are not allowed to click this button.  Sorry!" into m
  126.   if tries=10
  127.   then put "You are persistent! Congratulations.  That's all of the messages...really!" into m
  128.  
  129.   Put m into card field "Mssg"
  130.  
  131.   set the visible of card field "Mssg" to true
  132.  
  133.   repeat until the mouseClick
  134.     put n+1 into n
  135.     wait 1 ticks
  136.     if n=300 then exit repeat
  137.   end repeat
  138.   set the visible of card field "Mssg" to false
  139. end mouseUp
  140.  
  141.  
  142.  
  143. -- part 7 (field)
  144. -- low flags: 00
  145. -- high flags: 0002
  146. -- rect: left=111 top=40 right=56 bottom=262
  147. -- title width / last selected line: 0
  148. -- icon id / first selected line: 0 / 0
  149. -- text alignment: 0
  150. -- font id: 21
  151. -- text size: 12
  152. -- style flags: 8448
  153. -- line height: 16
  154. -- part name: slug#1
  155.  
  156.  
  157. -- part 8 (field)
  158. -- low flags: 00
  159. -- high flags: 0002
  160. -- rect: left=111 top=59 right=75 bottom=262
  161. -- title width / last selected line: 0
  162. -- icon id / first selected line: 0 / 0
  163. -- text alignment: 0
  164. -- font id: 21
  165. -- text size: 12
  166. -- style flags: 8448
  167. -- line height: 16
  168. -- part name: slug#2
  169.  
  170.  
  171. -- part 9 (field)
  172. -- low flags: 00
  173. -- high flags: 0002
  174. -- rect: left=226 top=78 right=94 bottom=262
  175. -- title width / last selected line: 0
  176. -- icon id / first selected line: 0 / 0
  177. -- text alignment: 0
  178. -- font id: 21
  179. -- text size: 12
  180. -- style flags: 8448
  181. -- line height: 16
  182. -- part name: numRounds
  183.  
  184.  
  185. -- part 10 (field)
  186. -- low flags: 00
  187. -- high flags: 0002
  188. -- rect: left=265 top=40 right=56 bottom=304
  189. -- title width / last selected line: 0
  190. -- icon id / first selected line: 0 / 0
  191. -- text alignment: 1
  192. -- font id: 21
  193. -- text size: 12
  194. -- style flags: 0
  195. -- line height: 16
  196. -- part name: cl1
  197.  
  198.  
  199. -- part 12 (field)
  200. -- low flags: 00
  201. -- high flags: 0002
  202. -- rect: left=307 top=40 right=56 bottom=346
  203. -- title width / last selected line: 0
  204. -- icon id / first selected line: 0 / 0
  205. -- text alignment: 1
  206. -- font id: 21
  207. -- text size: 12
  208. -- style flags: 0
  209. -- line height: 16
  210. -- part name: ef1
  211.  
  212.  
  213. -- part 13 (field)
  214. -- low flags: 00
  215. -- high flags: 0002
  216. -- rect: left=349 top=40 right=56 bottom=388
  217. -- title width / last selected line: 0
  218. -- icon id / first selected line: 0 / 0
  219. -- text alignment: 1
  220. -- font id: 21
  221. -- text size: 12
  222. -- style flags: 0
  223. -- line height: 16
  224. -- part name: pw1
  225.  
  226.  
  227. -- part 14 (field)
  228. -- low flags: 00
  229. -- high flags: 0002
  230. -- rect: left=391 top=40 right=56 bottom=430
  231. -- title width / last selected line: 0
  232. -- icon id / first selected line: 0 / 0
  233. -- text alignment: 1
  234. -- font id: 21
  235. -- text size: 12
  236. -- style flags: 0
  237. -- line height: 16
  238. -- part name: en1
  239.  
  240.  
  241. -- part 15 (field)
  242. -- low flags: 00
  243. -- high flags: 0002
  244. -- rect: left=433 top=40 right=56 bottom=472
  245. -- title width / last selected line: 0
  246. -- icon id / first selected line: 0 / 0
  247. -- text alignment: 1
  248. -- font id: 21
  249. -- text size: 12
  250. -- style flags: 0
  251. -- line height: 16
  252. -- part name: df1
  253.  
  254.  
  255. -- part 16 (field)
  256. -- low flags: 00
  257. -- high flags: 0002
  258. -- rect: left=265 top=59 right=75 bottom=304
  259. -- title width / last selected line: 0
  260. -- icon id / first selected line: 0 / 0
  261. -- text alignment: 1
  262. -- font id: 21
  263. -- text size: 12
  264. -- style flags: 0
  265. -- line height: 16
  266. -- part name: cl2
  267.  
  268.  
  269. -- part 17 (field)
  270. -- low flags: 00
  271. -- high flags: 0002
  272. -- rect: left=307 top=59 right=75 bottom=346
  273. -- title width / last selected line: 0
  274. -- icon id / first selected line: 0 / 0
  275. -- text alignment: 1
  276. -- font id: 21
  277. -- text size: 12
  278. -- style flags: 0
  279. -- line height: 16
  280. -- part name: ef2
  281.  
  282.  
  283. -- part 18 (field)
  284. -- low flags: 00
  285. -- high flags: 0002
  286. -- rect: left=349 top=59 right=75 bottom=388
  287. -- title width / last selected line: 0
  288. -- icon id / first selected line: 0 / 0
  289. -- text alignment: 1
  290. -- font id: 21
  291. -- text size: 12
  292. -- style flags: 0
  293. -- line height: 16
  294. -- part name: pw2
  295.  
  296.  
  297. -- part 19 (field)
  298. -- low flags: 00
  299. -- high flags: 0002
  300. -- rect: left=391 top=59 right=75 bottom=430
  301. -- title width / last selected line: 0
  302. -- icon id / first selected line: 0 / 0
  303. -- text alignment: 1
  304. -- font id: 21
  305. -- text size: 12
  306. -- style flags: 0
  307. -- line height: 16
  308. -- part name: en2
  309.  
  310.  
  311. -- part 20 (field)
  312. -- low flags: 00
  313. -- high flags: 0002
  314. -- rect: left=433 top=59 right=75 bottom=472
  315. -- title width / last selected line: 0
  316. -- icon id / first selected line: 0 / 0
  317. -- text alignment: 1
  318. -- font id: 21
  319. -- text size: 12
  320. -- style flags: 0
  321. -- line height: 16
  322. -- part name: df2
  323.  
  324.  
  325. -- part 21 (field)
  326. -- low flags: 80
  327. -- high flags: 0004
  328. -- rect: left=60 top=24 right=96 bottom=482
  329. -- title width / last selected line: 0
  330. -- icon id / first selected line: 0 / 0
  331. -- text alignment: 1
  332. -- font id: 21
  333. -- text size: 12
  334. -- style flags: 256
  335. -- line height: 16
  336. -- part name: Mssg
  337.  
  338.  
  339. -- part 22 (button)
  340. -- low flags: 00
  341. -- high flags: 2000
  342. -- rect: left=476 top=61 right=93 bottom=511
  343. -- title width / last selected line: 0
  344. -- icon id / first selected line: 21060 / 21060
  345. -- text alignment: 1
  346. -- font id: 0
  347. -- text size: 12
  348. -- style flags: 0
  349. -- line height: 16
  350. -- part name: help
  351. ----- HyperTalk script -----
  352. on mouseUp
  353.   get the visible of card field "help"
  354.   if it is true then
  355.     set the visible of card field "help" to false
  356.   else
  357.     set the visible of card field "help" to true
  358.   end if
  359. end mouseUp
  360.  
  361.  
  362. -- part 23 (field)
  363. -- low flags: 80
  364. -- high flags: 0007
  365. -- rect: left=0 top=208 right=341 bottom=511
  366. -- title width / last selected line: 0
  367. -- icon id / first selected line: 0 / 0
  368. -- text alignment: 0
  369. -- font id: 4
  370. -- text size: 9
  371. -- style flags: 0
  372. -- line height: 12
  373. -- part name: help
  374.  
  375.  
  376. -- part 25 (button)
  377. -- low flags: 00
  378. -- high flags: 2000
  379. -- rect: left=475 top=26 right=59 bottom=512
  380. -- title width / last selected line: 0
  381. -- icon id / first selected line: 9991 / 9991
  382. -- text alignment: 1
  383. -- font id: 0
  384. -- text size: 12
  385. -- style flags: 0
  386. -- line height: 16
  387. -- part name: list
  388. ----- HyperTalk script -----
  389. on mouseUp
  390.   get the visible of card field "list"
  391.   if it is true then
  392.     set the visible of card field "list" to false
  393.   else
  394.     set the visible of card field "list" to true
  395.   end if
  396. end mouseUp
  397.  
  398.  
  399. -- part 26 (field)
  400. -- low flags: 80
  401. -- high flags: 0007
  402. -- rect: left=340 top=114 right=329 bottom=504
  403. -- title width / last selected line: 0
  404. -- icon id / first selected line: 0 / 0
  405. -- text alignment: 0
  406. -- font id: 4
  407. -- text size: 9
  408. -- style flags: 0
  409. -- line height: 12
  410. -- part name: List
  411.  
  412.  
  413. -- part 27 (button)
  414. -- low flags: 00
  415. -- high flags: A004
  416. -- rect: left=59 top=40 right=57 bottom=111
  417. -- title width / last selected line: 0
  418. -- icon id / first selected line: 0 / 0
  419. -- text alignment: 1
  420. -- font id: 21
  421. -- text size: 12
  422. -- style flags: 8192
  423. -- line height: 16
  424. -- part name: Slug 1:
  425. ----- HyperTalk script -----
  426. on mouseUp
  427.   get filename("TEXT")
  428.   put it into fname1
  429.  
  430.   global first1,first2,f1,f2,cl1,cl2,ef1,ef2,pw1,pw2,en1,en2,df1,df2
  431.   global sp1,sp2,loaded1
  432.  
  433.   open file fname1                    -- open fighter #1
  434.   read from file fname1 until return
  435.   put it into first1  -- first name
  436.   read from file fname1 until return
  437.   put it into f1      -- last name
  438.   read from file fname1 until return
  439.   put it into cl1     -- control=aggresiveness
  440.   read from file fname1 until return
  441.   put it into ef1     -- efficiency=% punches connected
  442.   read from file fname1 until return
  443.   put it into pw1     -- power=power of the fighter's punch
  444.   read from file fname1 until return
  445.   put it into en1     -- endurance
  446.   read from file fname1 until return
  447.   put it into df1     -- defense= + good, - bad
  448.   read from file fname1 until return
  449.   delete last char of it
  450.   put it into sp1
  451.   close file fname1
  452.  
  453.   delete last char of f1
  454.   delete last char of first1
  455.   put cl1 into card field "cl1"
  456.   put ef1 into card field "ef1"
  457.   put pw1 into card field "pw1"
  458.   put en1 into card field "en1"
  459.   put df1 into card field "df1"
  460.   put 1 into loaded1
  461.   put first1&&f1 into card field "slug#1"
  462.   play "harpsichord"
  463.  
  464.  
  465. end mouseUp
  466.  
  467.  
  468.  
  469. -- part 29 (button)
  470. -- low flags: 00
  471. -- high flags: A004
  472. -- rect: left=59 top=59 right=76 bottom=111
  473. -- title width / last selected line: 0
  474. -- icon id / first selected line: 0 / 0
  475. -- text alignment: 1
  476. -- font id: 21
  477. -- text size: 12
  478. -- style flags: 8192
  479. -- line height: 16
  480. -- part name: Slug 2:
  481. ----- HyperTalk script -----
  482. on mouseUp
  483.   get filename("TEXT")
  484.   put it into fname2
  485.  
  486.   global first1,first2,f1,f2,cl1,cl2,ef1,ef2,pw1,pw2,en1,en2,df1,df2
  487.   global sp1,sp2,loaded2
  488.  
  489.   open file fname2                    -- open fighter #2
  490.   read from file fname2 until return
  491.   put it into first2
  492.   read from file fname2 until return
  493.   put it into f2
  494.   read from file fname2 until return
  495.   put it into cl2
  496.   read from file fname2 until return
  497.   put it into ef2
  498.   read from file fname2 until return
  499.   put it into pw2
  500.   read from file fname2 until return
  501.   put it into en2
  502.   read from file fname2 until return
  503.   put it into df2
  504.   read from file fname2 until return
  505.   delete last char of it
  506.   put it into sp1
  507.   close file fname2
  508.  
  509.   delete last char of f2
  510.   delete last char of first2
  511.   put cl2 into card field "cl2"
  512.   put ef2 into card field "ef2"
  513.   put pw2 into card field "pw2"
  514.   put en2 into card field "en2"
  515.   put df2 into card field "df2"
  516.   put 1 into loaded2
  517.   put first2&&f2 into card field "slug#2"
  518.   play "harpsichord"
  519.  
  520.  
  521. end mouseUp
  522.  
  523.  
  524.  
  525. -- part contents for card part 21
  526. ----- text -----
  527. You are not allowed to click this button.  Sorry!
  528.  
  529. -- part contents for card part 23
  530. ----- text -----
  531.  
  532. Slug (A)                                                      Special thanks to:
  533. Version 0.93                                                  Manny Fernandez
  534. April 19, 1989
  535. by Mike Gleason Jr.
  536.  
  537. * Click the Help Button again to close this field. *
  538.  
  539. Intro:
  540. -----
  541. Slug, in case you already haven't figured out, does not deal with terrestrial pulmonate gastropods;  it is a professional boxing simulator.  I originally called the program "Slugging," but that sounded strange, so I truncated the name to "Slug."
  542.  
  543. Instructions:
  544. ------------
  545. Before each fight, you must load the desired fighters from disk.  Click the buttons called "Slug 1:" and "Slug 2:". This will bring up the fileName XFCN. Click the filename and hit open. (Thanks to whoever wrote it!).  If you click the button that resembles a slug's head, a list of Slugs will appear.  Most filenames are in the following format:
  546.        Tyson, Mike
  547. If you did everything right, you will hear the harpsichord ring. The fighter's statistics will appear in the card fields to the right of their names. I won't go into much detail on these stats, but I will tell you what they are:
  548.      Cl = Control;     How much a fighter dominates the fight (1-100)
  549.      Ef = Efficiency;  How accurate a fighter's punches are (1-100)
  550.      Pw = Power;       The power of the fighter's punch (1-12)
  551.      En = Endurance;   The fighter's ability to stay off the canvas (1-300)
  552.      Df = Defense;     How good the fighter defends himself (+ good, - bad)
  553.  
  554. Hit the right finger key to arrive at ringside.  Hit the "Fight!" button to start the bout.  (If the fight button is replaced by a field saying you haven't loaded slugs, go back to the first card and load them.)  Each fighter's actions will be shown in the bigger fields.  The numberline along the bottom is the knockdown meter; it will increment when a fighter kisses the floor.  The fighters' scores will be updated in fields to the right of the ko meter.  The stack will ring after each round; you can either click to continue or wait a few seconds.
  555.  
  556. How to Register:
  557. ---------------
  558. I can't physically force you to register, but when you send in your Mandatory Shareware Fee (MSF) of $2.00 and a formatted 800k disk, you will receive the disk back with the following on it:
  559.   All the Slugs I have created at the moment...there will be atleast 100!
  560.   A Slug generator, so you can make your own Slugs.
  561.   A bunch of other neat junk
  562.   
  563. Send your MSF to:
  564.   Mike Gleason Jr
  565.   5705 N 117th Plaza
  566.   Omaha, NE  68164-1432
  567.  
  568.  
  569. -- part contents for card part 26
  570. ----- text -----
  571. Ali, Muhammad
  572. Berbick, Trevor
  573. Bruno, Frank
  574. Cobb, Randall "Tex"
  575. Cooney, Gerry
  576. Dempsey, Jack
  577. Duran, Roberto
  578. Frazier, Joe
  579. Hagler, Marvin
  580. Jackson, Hurricane
  581. Leonard, Sugar Ray
  582. Liston, Sonny
  583. Louis, Joe
  584. Spinks, Michael
  585. Tillis, James "Quick"
  586. Tunney, Gene
  587. Tyson, Mike
  588.  
  589.  
  590. -- part contents for card part 9
  591. ----- text -----
  592. 2